function AverageWait = parameterfun(x,n,A,b)
Waitings= zeros(n) ;
AverageWait=0;
for i=1:n
    for j=1:n
    Waitings(i)=Waitings(i) - A(i,j)*x(j);
    end
    Waitings(i) = Waitings(i) + b(i);
AverageWait = AverageWait +  1/Waitings(i);
end
AverageWait=AverageWait/n;
end